package com.atguigu.edu.entity.vo.tree;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
@JsonPropertyOrder({"value", "label", "children"})
public class EduSubjectCascader implements Serializable {

    @JsonProperty("value")
    private String id;

    @JsonProperty("label")
    private String title;

    @JsonIgnore
    private String pid;

    @JsonProperty("children")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<EduSubjectCascader> children;
}
